<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a id="go" >baidu</a>
    <img src="xxxx" alt="">
    <img src="xxxx" alt="">
    <img src="xxxx" alt="">
    <!-- <img src="xxxx" alt=""> -->

    <script src="./jq.js"></script>
    <script>
        function go () {
            console.log(1);
        }
        $('#go').on('click', go);
        setTimeout(() => {
            go();
        }, 1000);

        const a = document.querySelector('#go');
        function fn () {
            console.log(2);
        }
        a.addEventListener('click', fn);
        a.removeEventListener('click', fn);
    </script>
</body>
</html>